<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>

        // 算术运算符: +  -  *  /  % (模--余数)

        var x = 1 ;
        var y = 2 ;
        var z = x + y ;
        console.log(z) ;
        console.log(x * y) ;
        console.log(x / y) ;

        console.log(8 % 3) ;  // 2

        console.log(3 % 8) ;   // 3


        console.log(2 + 3 * 4) ; // 14

        console.log((2 + 3) * 4) ; // 20

    </script>


    
</body>
</html>